Once control is passed from ContactsLaw to the program you are editing the
document with, it is not possible to determine when you have finished editing. Microsoft Office products like Word and Excel have features built in to them that detect when a document has been opened from a SharePoint document library and offer a check-in prompt automatically as you close them; but this behaviour is not universal and not all document editors will provide this. You must remember to check in your changes within ContactsLaw after you have finished.